﻿using Alison.EFCore;
using Alison.EFCore.Dto;
using Alison.EFCore.Entity;
using Alison.Tools.HttpContact.Response;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Alison.Service
{
	public interface IUserService: IDenpendency
	{
		ApiResponse Login(LoginDTO loginDTO);
		 
		Task<ApiResponse> GetAll(UserDto dto); 
		Task<ApiResponse> Add(UserDto dto);

		Task<ApiResponse> Get(int id); 
		Task<ApiResponse> Delete(int id);

		Task<ApiResponse> Save(UserDto dto);
	}
}
